package com.thinkgsp.jxc.service;

import java.util.List;

import com.thinkgsp.jxc.model.InventoryAdd;
import com.thinkgsp.jxc.persistence.InventoryAddMapper;

/**
 * 存货地址业务类
 * @author evan
 *
 */
public interface InventoryAddService {

	public void setInventoryAddMapper(InventoryAddMapper invAddMapper);
	
	/**
	 * 根据Id获取存货地址
	 * @param invId
	 * @return
	 */
	public InventoryAdd getInventoryAdd(Integer invId);
	
	/**
	 * 获取所有存货地址
	 * @return
	 */
	public List<InventoryAdd> getAllInventoryAdd();
	
	/**
	 * 获取部门所属存货地址
	 * @param deptId
	 * @return
	 */
	public List<InventoryAdd> getInventoryAddByDept(Integer deptId);
	
	/**
	 * 保存存货地址
	 * @param invAdd
	 */
	public void saveInventoryAdd(InventoryAdd invAdd);
	
	/**
	 * 删除存货地址
	 * @param invAdd
	 */
	public void deleteInventoryAdd(Integer invAdd) throws ServiceException;
}
